package pl.register.android.gallery;

import android.net.Uri;

/**
 * @author Mateusz Strzelecki
 * @since 2013-05-04
 */
public class LoadedImage {

    private int id;

    private Uri uri;

    private String path;

    private String fileName;

    public LoadedImage(int id, Uri uri, String path) {
        this.id = id;
        this.uri = uri;
        this.path = path;

        String[] temp = path.split("/");
        fileName = temp[temp.length - 1];
    }

    public String getPath() {
        return path;
    }

    public String getFileName() {
        return fileName;
    }

    public Uri getUri() {
        return uri;
    }

    @Override
    public String toString() {
        return "LoadedImage{" +
                "id=" + id +
                ", path='" + path + '\'' +
                '}';
    }
}
